package day06;

import java.util.Arrays;
import java.util.Random;

public class txt7 {
    public static void main(String[] args) throws InterruptedException {
        int[]a={};
        while (true){
            a=Arrays.copyOf(a,a.length+1);
            Random r=new Random();
            a[a.length-1]=r.nextInt(100);
            System.out.println(Arrays.toString(a));
            Thread.sleep(1000);
        }
    }
}
